package com.ruoyi.web.controller.app;


import com.ruoyi.common.core.page.ResponseResult;
import com.ruoyi.system.ali.ChannelCodeService;
import com.ruoyi.system.vo.ChannelCodeVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@Api(tags = "用户端:银行卡相关接口")
@RestController
@RequestMapping("/public/channel")
public class ChannelController extends AppController {
    @Resource
    private ChannelCodeService channelCodeService;


    @ApiOperation(value = "新增或修改,有id为修改")
    @GetMapping("get")
    public ResponseResult get() {
        List<ChannelCodeVo> channelCodeVos = channelCodeService.listHandle();
        ArrayList<List> objects = new ArrayList<>();
        objects.add(channelCodeVos);
        return this.setSuccessResult(objects);
    }


}
